import { fetch, mock } from '../../common/api/api'
let _list = opt => {
  let {
    UnionID,
    KeyWord,
    StateType,
    PageIndex,
    PageSize
  } = opt
  return fetch(
    'GetMyCustomer',
    {
      UnionID,
      KeyWord,
      StateType,
      PageIndex,
      PageSize
    }
  )
}
let _detail = (uid, id) => {
  return fetch(
    'GetCustomerInfo',
    {
      ID: id,
      UnionID: uid
    }
  )
}
export {
  _list,
  _detail
}